import java.util.Scanner;
public class Calender
{
  public static void main(String[]args) 
  {
    int year ;
    
    Scanner scan = new Scanner(System.in);
    System.out.print( "Enter the year:");
    year = scan.nextInt();
    if(year<1582)
    System.out.println("wrong");
      if(year%4==0)
        if(year%100==0)
          if(year%400==0)
          System.out.println("run year");
          else
          System.out.println("Not run year");
        else
        System.out.println("run year");
      else
        System.out.println("Not run year");
  }
}
  
